import React, { Component } from 'react';
import { Button } from 'antd';

const CorrelateToolbar = (props) => {

  const { onShowTransfer, onDeleteUser, correlateType } = props;

  const iconStyle = {
    verticalAlign: "bottom",
    marginRight: "5px",
  }

  return (
    <div style={{marginTop: "15px"}}>
      <Button type="primary"
              size="default"
              icon={<i className={"ri-contacts-line"} style={iconStyle}></i>}
              onClick={onShowTransfer}
      >{ correlateType == "2" ? "关联应用" : correlateType == "3" ? "关联单位" : correlateType == "4" ? "关联部门" : "关联用户" }</Button>
      <Button size="default"
              style={{ margin: "0px 0px 0px 15px" }}
              icon={<i className={"ri-contacts-line"} style={iconStyle}></i>}
              onClick={onDeleteUser}
      >删除</Button>
    </div>
  );
}

export default CorrelateToolbar;
